/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Objects;

/**
 *
 * @author CKCantillas
 */
public class Editor extends Member {
    private String position;

    
    /**
     * @return the position
     */
    public String getPosition() {
        return position;
    }

    
    
/* update the methods below during phase 2 */
    /* Return type: boolean
     *
     * Returns TRUE if newBook is added to the database.
     * Returns FALSE if newBook is not added to the database.
     */
    public boolean addBook(Book newBook) {
        DBM.DBManager dbm = new DBM.DBManager();
        
        return dbm.addBook(newBook);
    }
    
    /**/
    public boolean updateBook(Book updatedBook) {
        return false;
    }
    
    /* Return type: boolean
     * 
     * Returns TRUE if a book with isbn is deleted.
     * Returns FALSE if no book with isbn is deleted.
     */
    public boolean deleteBook(String isbn) {
        DBM.DBManager dbm = new DBM.DBManager();
        
        return dbm.deleteBook(isbn);
    }
    
    /* Return type: boolean
     * 
     * Returns TRUE if (a) book/s with title and author is/are deleted.
     * Returns FALSE if no book with title and author is deleted.
     */
    public boolean deleteBook(String title, String author) {
        DBM.DBManager dbm = new DBM.DBManager();
        
        return dbm.deleteBook(title, author);
    }
}
